<include file="public@header" />
</head>
<body>
	<div class="wrap">
    <ul class="nav nav-tabs">
			<li><a href="{:url('AdminIndex/index')}">人员管理</a></li>
			<li ><a href="{:url('AdminIndex/recordsList',['id'=>$record.partner_id])}">人员缴纳情况</a></li>
			<li  class="active"><a>修改</a></li>
            
		</ul>
        <form class="layui-form js-ajax-form margin-top-20" action="{:url('AdminIndex/editRecord')}">
            
          <div class="layui-form-item">
            <label class="layui-form-label">类目</label>
            <div class="layui-input-inline">
              <input type="text" name="title" required value="汇缴{:date('Ym',time())}" lay-verify="required" placeholder="请输入类目" autocomplete="off" class="layui-input" value="{$record.title}">
            </div>
          </div>
          
          <div class="layui-form-item">
            <label class="layui-form-label" >金额</label>
            <div class="layui-input-inline">
              <input type="text" name="money" required  lay-verify="required" placeholder="请输入金额" autocomplete="off" class="layui-input" value="{$record.money/100}">
            </div>
            <div class="layui-form-mid layui-word-aux">（例如：120.01,或者120)</div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label" style="width: 100px;">缴存日期</label>
            <div class="layui-input-inline">
              <input type="text" class="layui-input" name="create_time" id="pay_date" value="{:date('Y-m-d',strtotime($record.create_time))}">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">类型：</label>
            <div class="layui-input-block">
              
              <input type="radio" name="type" value="1" title="缴存" {$record.type==1?'checked':''}>
              <input type="radio" name="type" value="2" title="提取" {$record.type==2?'checked':''}>
              <input type="radio" name="type" value="3" title="其他" {$record.type==3?'checked':''}>
            </div>
          </div>
            <div class="layui-form-item">
              <div class="layui-input-block">
                <input type="hidden" name="id" value="{$record.id}"/>
                <input type="hidden" name="partner_id" value="{$record.partner_id}"/>

                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">保存</button>
              </div>
            </div>
          </form>
       
    </div>
        <script src="__STATIC__/js/admin.js"></script>
        <script type="text/javascript">
          layui.use('form', function(){
            var form = layui.form;
            
            //监听提交
            form.on('submit(formDemo)', function(data){
            });
          });
           
            layui.use('laydate', function(){
                  var laydate = layui.laydate;
                  
                  //执行一个laydate实例
                  laydate.render({
                    elem: '#pay_date' //指定元素
                  });
                });
        </script>
</body>
</html>